package cn.edu.cqupt.mis.ywbd.admin.dao;


import cn.edu.cqupt.mis.ywbd.common.pojo.Question;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @author 李国龙
 * @date 2021/3/31
 */
@Mapper
public interface QuestionMapper extends BaseMapper<Question> {

    /**
     * 问题的逻辑删除，deleted为1表示已删除，为0表示未删除
     * @param questionId
     * @return
     */
    @Update("update question set deleted = 1 where question_id = #{questionId}")
    boolean logicalDelete(Integer questionId);
}
